package com.pan.hisystem.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author qingyang
 * @since 2022-04-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("h_patient_test")
@ApiModel(value="PatientTest对象", description="")
public class PatientTest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "化验id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "化验项目id")
    private Integer nameId;

    @ApiModelProperty(value = "化验结果")
    private String result;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "化验时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime testTime;

    @ApiModelProperty(value = "实收金额")
    private Double revPrice;

    @ApiModelProperty(value = "找回金额")
    private Double backPrice;

    @ApiModelProperty(value = "是否缴费")
    @TableField("pay_status")
    private Boolean payStatus;

    @ApiModelProperty(value = "缴费时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "是否已化验")
    private Boolean status;

    @ApiModelProperty(value = "是否退费")
    @TableField("back_status")
    private Boolean backStatus;

    @ApiModelProperty(value = "化验项目")
    @TableField(exist = false)
    private Test test;

    @ApiModelProperty(value = "化验图片")
    @TableField(exist = false)
    private List<TestImage> imageList;


}
